package 练习2;

//百钱百鸡

public class test05 {
    public static void main(String[] args) {
        for (int i = 0; i < 21; i++) {
            for (int i1 = 0; i1 < 34; i1++) {
                int i2 = 100 - i - i1;

                if (i2 % 3 == 0 && 5 * i + 3 * i1 + i2 / 3 == 100) {
                    System.out.println(i + " " + i1 + " " + i2);
                }
            }
        }
    }
}
